package com.xiaoshuidi.cloud.module.finance.enums.voucher;

import lombok.Getter;

/**
	* @author dujianguang
	*/
@Getter
public enum FinanceVoucherPaymentTypeMapperEnum {
		//0 alipay 支付宝 |1 dida 滴答付 |2 weixin 微信 |3 cash 现金 |4 bank 银行转账|5 system 系统标记为已支付|6 pos 线下POS |7 h2ome 水滴金融 |8 llian 连连支付 |9,  other 其他 |10 allinpay 银行卡在线支付|11 allinpaywx 微信在线支付|12 allinpayh5 银行卡小额支付 |13 pinganwx 微信支付 |14 daikou 银行代扣|15 ldpay 快捷支付|16 ldalipay 支付宝支付,

		PAYMENT_TYPE_0("支付宝","线上联动渠道收款总额"),
		PAYMENT_TYPE_1("滴答付","线上联动渠道收款总额"),
		PAYMENT_TYPE_2("微信","线上联动渠道收款总额"),
		PAYMENT_TYPE_3("现金","现金"),
		PAYMENT_TYPE_4("银行转账","银行转账"),
		PAYMENT_TYPE_5("系统标记为已支付","银行转账"),
		PAYMENT_TYPE_6("线下POS","线上联动渠道收款总额"),
		PAYMENT_TYPE_7("水滴金融","线上联动渠道收款总额"),
		PAYMENT_TYPE_8("连连支付","线上联动渠道收款总额"),
		PAYMENT_TYPE_9("其他","银行转账"),
		PAYMENT_TYPE_10("银行卡在线支付","银行转账"),
		PAYMENT_TYPE_11("微信在线支付","线上联动渠道收款总额"),
		PAYMENT_TYPE_12("银行卡小额支付","银行转账"),
		PAYMENT_TYPE_13("微信支付","线上联动渠道收款总额"),
		PAYMENT_TYPE_14("银行代扣","银行转账"),
		PAYMENT_TYPE_15("快捷支付","银行转账"),
		PAYMENT_TYPE_16("支付宝支付","线上联动渠道收款总额");


		private final String paymentName;
		private final String voucherName;

		FinanceVoucherPaymentTypeMapperEnum(String paymentName, String voucherName) {
				this.paymentName = paymentName;
				this.voucherName = voucherName;
		}
		public static FinanceVoucherPaymentTypeMapperEnum find(String paymentName) {
				for (FinanceVoucherPaymentTypeMapperEnum value : values()) {
						if (value.getPaymentName().equals(paymentName)) {
								return value;
						}
				}
				return null;
		}

}
